package cn.huanba.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * (Product)实体类
 *
 * @author makejava
 * @since 2021-01-07 17:23:27
 */
public class Product implements Serializable {
    private static final long serialVersionUID = -58448976177521164L;

    @Override
    public String toString() {
        return "Product{" +
                "pid=" + pid +
                ", uid=" + uid +
                ", tid=" + tid +
                ", productname='" + productname + '\'' +
                ", describe='" + describe + '\'' +
                ", createdate=" + createdate +
                ", pictureList=" + pictureList +
                '}';
    }

    private Integer pid;
    /**
     * 用户外键
     */
    private Integer uid;
    /**
     * 类别编号
     */
    private Integer tid;
    /**
     * 产品名称
     */
    private String productname;
    /**
     * 产品描述
     */
    private String describe;

    private Date createdate;
    //图片集合
    private List<Picture> pictureList=new ArrayList<>();
    //对接集合
    private List<Dock> dockList=new ArrayList<>();


    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public List<Picture> getPictureList() {
        return pictureList;
    }

    public void setPictureList(List<Picture> pictureList) {
        this.pictureList = pictureList;
    }

    public List<Dock> getDockList() {
        return dockList;
    }

    public void setDockList(List<Dock> dockList) {
        this.dockList = dockList;
    }
}